#include<iostream>
#include<cstring>

using namespace std;

const int ArSize = 20;

struct CandyBar
{
    char name[ArSize];
    double weight;
    int heat;
};

void set_struct(CandyBar& cb,const char* n = "Millennium Munch",double w = 2.85,int h = 350);

void show_struct(const CandyBar& cb);

int main()
{
    CandyBar cb;
    set_struct(cb);
    show_struct(cb);

    return 0;
}

void set_struct(CandyBar& cb,const char* n ,double w ,int h )
{
    strcpy(cb.name,n);
    cb.weight = w;
    cb.heat = h;
}

void show_struct(const CandyBar& cb)
{
    cout << "    Candy bar:" << endl;
    cout << "Name: " << cb.name << endl;
    cout << "Weight: " << cb.weight << endl;
    cout << "Heat: "<< cb.heat << endl;
}